<?php
class AppointmentController extends CommonController{
	public function indexBefore(){
		$displacement_list=M('Displacement')->twoArrayField('id')->field('id,name')->select();
		$model_list=M('Model')->twoArrayField('id')->field('id,name')->select();
		$car_list=M('Car')->twoArrayField('id')->field('id,name')->select();
		$project_list=M('Project')->twoArrayField('id')->field('id,name')->select();
		$this->assign('displacement_list',$displacement_list);
		$this->assign('model_list',$model_list);
		$this->assign('car_list',$car_list);
		$this->assign('project_list',$project_list);
	}
}